﻿@{
    Layout = "~/Views/Shared/OA/_Layout.cshtml";
    ViewBag.Title = "后台管理";
    //CommonAppService.Current.GetSettingValue("Common_Management", "Name");
    //   var user = ManagerAuthorization.Current.User;
}
<link href="~/App_Content/Theme/OA/css/index.css" rel="stylesheet" />
<div class="left-nav">
    <div style="height: 853px;" class="nav-scroll">
        <ul id="oneMenu">
            <li data-id="0">
                <img alt="后台管理" src="/App_Content/Theme/OA/css/image/icon-00.png" align="middle"><p style="text-align: center;">后台管理</p>
            </li>
            <li data-id="1">
                <img alt="通用管理" src="/App_Content/Theme/OA/css/image/icon-01.png" align="middle"><p style="text-align: center;">通用管理</p>
            </li>
            <div style="top: 45px;" class="arrow-0"></div>
        </ul>
    </div>


</div>
<div class="right">
    <div class="content">
        <div class="top">
            <div class="status">
                @*@Html.Partial("~/Areas/Org/Views/Employee/_LoginView.cshtml")*@
            </div>
            <div class="message-icon"></div>
            <div class="message">
                @*@Html.Action("ReadForCatalog", "Article", new { Area = "CMS", Top = 1, CatalogKey = "Announcement", VPartial = "ReadForTopbar" })*@
            </div>
        </div>
        <div class="container" id="container">
            <div class="container-left">
                <ul style="display: block;" data-id="0" class="">
                    @*<li key="c068682a-cdb3-4dc7-8a64-7786b1b21288" name="运营数据" url="/Report/Statistic">
                            <a class="" href="#">运营数据</a>
                        </li>*@
                    <li key="a97de238-e1e1-41df-b5b6-42c0c818684d" name="应用管理" url="/WX/App">
                        <a class="active" href="#">应用管理</a>
                    </li>
                    <li key="20c83d41-ca89-4340-a62a-02e4585f73e7" name="栏目管理" url="/WX/Catalog/Index">
                        <a href="#">栏目管理</a>
                    </li>
                    <li key="42dba044-7503-4608-8137-cdc929bc33a1" name="文章管理" url="/WX/Article/Index">
                        <a class="" href="#">文章管理</a>
                    </li>
                    <li key="769817b7-5885-471d-9567-e14a505fec23" name="导航管理" url="/WX/Navigation">
                        <a href="#">导航管理</a>
                    </li>

                    <li key="d9330929-913e-4ded-a808-e5f1cb3de3f4" name="自定义菜单" url="/WX/Menu">
                        <a href="#">自定义菜单</a>
                    </li>

                    @*<li key="a2c420bf-7202-4f1a-88a3-c0f1fea08982" name="厂家" url="/Org/Manufacturer ">
                            <a href="#">厂家</a>
                        </li>
                        <li key="5b315309-e32c-488c-bc8b-825473cbc24b" name="代理商" url="/Org/Agent">
                            <a href="#">代理商</a>
                        </li>
                        <li key="cc232073-1fe4-4f63-a75b-2c84d41d8ad5" name="集团管理" url="/Org/Company">
                            <a href="#">集团管理</a>
                        </li>*@
                </ul>

                <ul style="display: none;" data-id="1" class="hide">
                    <li key="2533505d-6285-49a8-abf5-2b6e291282d8" name="应用管理" url="/Common/Application">
                        <a href="#">应用管理</a>
                    </li>
                    <li key="db92f934-324c-4e5b-94bd-9ac1e657f578" name="模块管理" url="/Common/Module">
                        <a class="" href="#">模块管理</a>
                    </li>
                    <li key="8d1c14cb-3c27-49dd-a4f7-ec3b52349755" name="配置管理" url="/Common/Setting">
                        <a class="" href="#">配置管理</a>
                    </li>
                    <li key="8cb59b21-2daf-4b9e-95aa-a557b4940b95" name="附件类型" url="/Common/AttachmentType">
                        <a href="#">附件类型</a>
                    </li>
                    <li key="5c46ee30-5369-4197-9f07-9705270a7222" name="用户管理" url="/Common/User">
                        <a href="#">用户管理</a>
                    </li>
                    <li key="0f76487e-0999-437a-b0b2-336268bc2d7f" name="角色管理" url="/Common/Role">
                        <a href="#">角色管理</a>
                    </li>
                    <li key="f14e5621-fe36-4eb4-9f3c-98f17d34d171" name="站内信息" url="/Common/Message">
                        <a href="#">站内信息</a>
                    </li>
                    <li key="aad87e4e-e225-4d98-aeef-3fe55e70a80a" name="日志类型" url="/Common/LogType">
                        <a href="#">日志类型</a>
                    </li>
                    <li key="8b7e7afb-ba47-49c9-ae2d-2450751721e2" name="用户管理" url="/Common/User">
                        <a href="#">用户管理</a>
                    </li>
                    <li key="ac71780c-5dec-43f5-9b55-9a689de49b2d" name="地区管理" url="/Common/Area">
                        <a href="#">地区管理</a>
                    </li>
                </ul>
                <ul style="display: none;" data-id="1" class="hide">
                    <li key="402fedb0-252b-4be9-afeb-1e28633741f9" name="店铺首页" url="/Report/Home">
                        <a href="#">店铺首页</a>
                    </li>
                    <li key="5ffc23e9-e1e5-44fe-a461-5bcea4e9aedd" name="员工管理" url="/Org/Employee">
                        <a href="#">员工管理</a>
                    </li>
                    <li key="63c94dd1-af3c-4dd0-976e-f673b7667107" name="车型库" url="/Car/TenantCarModel">
                        <a href="#">车型库</a>
                    </li>
                    <li key="69226572-c3e8-4280-89ab-ee4338842b56" name="车辆库存管理 " url="/CRM/CarInventory">
                        <a href="#">车辆库存管理 </a>
                    </li>
                    <li key="a0344901-6ba7-48ff-902e-f255b9866240" name="车图库" url="/Car/CarPhoto/Tenant">
                        <a href="#">车图库</a>
                    </li>
                    <li key="766e68d1-fe1f-489a-ac9e-e3107ad2b925" name="案例库" url="/Car/Example">
                        <a href="#">案例库</a>
                    </li>
                    <li key="222d6b64-6a42-440e-97f3-caa6ed84f09d" name="主题设置" url="/UI/Theme">
                        <a href="#">主题设置</a>
                    </li>
                    <li key="ef23c3ec-7668-48ea-8ed6-5a33707e1f18" name="边栏设置" url="/UI/Theme/Sidebar">
                        <a href="#">边栏设置</a>
                    </li>
                    <li key="70036eb6-f360-43af-9a4f-feecdfc63932" name="保险公司" url="/Org/TenantSetting/Insurer">
                        <a href="#">保险公司</a>
                    </li>
                    <li key="6f9f307c-2493-4f63-bb3f-1f093271fc42" name="微支付设置" url="/Org/TenantSetting/OnlinePay">
                        <a href="#">微支付设置</a>
                    </li>
                    <li key="f99cefc2-03ba-45b0-9e50-76ffaf22814b" name="维保设置" url="/Org/TenantSetting/Maintain">
                        <a href="#">维保设置</a>
                    </li>
                    <li key="f7fd9661-f64d-46d9-a8c9-644fc59021b2" name="消息模板设置" url="/Org/TenantSetting/MessageTemplate">
                        <a href="#">消息模板设置</a>
                    </li>
                    <li key="b4baaa66-9d35-4452-a387-80c474a7510b" name="云车购设置" url="/Org/TenantBank">
                        <a href="#">云车购设置</a>
                    </li>

                    <li key="dfa44f8d-6a7d-4d90-bd85-da9eb4bce505" name="计算器设置" url="/Tool/Calculator">
                        <a href="#">计算器设置</a>
                    </li>
                    <li key="2c51cc26-b609-4358-a93c-d038089d2e8f" name="展厅管理" url="/Tool/Location/">
                        <a href="#">展厅管理</a>
                    </li>
                    <li key="03c7bef2-948f-49cd-ba2f-ec5367fdd19b" name="回访设置" url="/UC/CustomerReVisit/Setting">
                        <a href="#">回访设置</a>
                    </li>
                </ul>
                <ul style="display: none;" data-id="2" class="hide">
                    <li key="777ca737-c2f6-4249-80d6-d83a1803b143" name="信息发布" url="/Car/Article?ParentKey=Tenant">
                        <a href="#">信息发布</a>
                    </li>
                    <li key="1ce1e897-1557-41b8-aed5-501fd25e1270" name="商品管理" url="/Car/Product">
                        <a href="#">商品管理</a>
                    </li>
                    <li key="00d57eae-8ce2-4cd8-86c9-21b182358381" name="投票管理" url="/Car/Vote">
                        <a href="#">投票管理</a>
                    </li>
                    <li key="cb002980-9c5d-4002-b238-fd076af03488" name="评论管理" url="/Car/Comment?Type=10">
                        <a href="#">评论管理</a>
                    </li>
                    <li key="e66b7bdf-add3-4728-95b2-7df12d8ab38c" name="优惠劵管理" url="/UC/Coupon">
                        <a href="#">优惠劵管理</a>
                    </li>
                    <li key="81b9b125-7e04-42e6-881f-e5b8655bb7a0" name="优惠劵领取记录" url="/UC/CouponRecord">
                        <a href="#">优惠劵领取记录</a>
                    </li>
                    <li key="9ccf2b79-a742-47ec-a6ea-d48386a92b7b" name="积分兑换礼品" url="/Car/Gift">
                        <a href="#">积分兑换礼品</a>
                    </li>
                    <li key="ba0062a2-3818-42e6-8b87-4870930f0b89" name="优惠券（旧）" url="/Car/Coupon">
                        <a href="#">优惠券（旧）</a>
                    </li>
                </ul>
                <ul style="display: none;" data-id="3" class="hide">
                    <li key="2c8a6252-35b5-4981-928b-9c41f29bc727" name="客户池" url="/UC/Customer">
                        <a class="" href="#">客户池</a>
                    </li>
                    <li key="0d4da4dd-40b0-4ac0-b551-36deb189dc30" name="潜客管理" url="/UC/Customer/IndexForPre">
                        <a href="#">潜客管理</a>
                    </li>
                    <li key="1bfe31c8-d2ef-47d4-823f-99471bf8ba65" name="老客管理" url="/UC/Customer/IndexForAfter">
                        <a href="#">老客管理</a>
                    </li>
                    <li key="3f2320a1-dd28-4423-a947-c00f326eeeed" name="会员管理" url="/UC/CustomerMember">
                        <a href="#">会员管理</a>
                    </li>
                    <li key="5bc07a9c-ce94-4af5-8349-7ec1b8bcd895" name="我的客户" url="/UC/Customer/IndexForMy">
                        <a href="#">我的客户</a>
                    </li>
                    <li key="127c235f-c949-4103-99e6-588e3482e8f9" name="用户组管理" url="/UC/Group">
                        <a href="#">用户组管理</a>
                    </li>
                    <li key="92f4e2da-117c-4fc7-a7b0-70c19a191067" name="Scrm客户管理" url="/UC/Customer/IndexForApp">
                        <a href="#">Scrm客户管理</a>
                    </li>
                </ul>
                <ul style="display: none;" data-id="4" class="hide">
                    <li key="5d62588c-79e5-4d82-af04-574d116b7f40" name="回访管理" url="/UC/CustomerReVisit">
                        <a href="#">回访管理</a>
                    </li>
                    <li key="4e2652ad-b922-4fc7-bb25-c9535487f3a9" name="售前报名" url="/Biz/OpportunityPre">
                        <a href="#">售前报名</a>
                    </li>
                    <li key="6d0acdc8-e483-4a19-b197-f77686ec400a" name="售后报名" url="/Biz/OpportunityAfter">
                        <a href="#">售后报名</a>
                    </li>
                    <li key="259d3735-275d-452e-a109-82b300816c89" name="预约维保" url="/Biz/Maintain">
                        <a href="#">预约维保</a>
                    </li>
                    <li key="655ab94d-be45-470d-ba14-73e886fff75b" name="保险续保" url="/Biz/Reinsurance">
                        <a href="#">保险续保</a>
                    </li>
                    <li key="97810aa7-1950-4d2e-b136-953d7fb5e4c3" name="微支付交易" url="/Biz/Order">
                        <a href="#">微支付交易</a>
                    </li>
                    <li key="9f85a4e8-3072-4afc-9f89-b803d7eab9a8" name="云车购交易" url="/Biz/Order/IndexForYcg">
                        <a href="#">云车购交易</a>
                    </li>
                    <li key="9fdf2c85-1852-4f31-90cd-a718947e75f4" name="订单验证" url="/Biz/Order/IndexForOrderItem">
                        <a href="#">订单验证</a>
                    </li>
                    <li key="7d7d0b24-6d1e-4d0a-9c3c-5c346809037f" name="资讯报名" url="/Biz/RegistInfo/">
                        <a href="#">资讯报名</a>
                    </li>
                    <li key="4ffaf3b8-1761-49c3-89db-a602086b19ca" name="神州试驾报名" url="/Car/SubjectSignup">
                        <a href="#">神州试驾报名</a>
                    </li>
                    <li key="2ac4f5ba-59e8-48be-804c-5bdd91541b42" name="资讯报名" url="/Biz/RegistInfo">
                        <a href="#">资讯报名</a>
                    </li>
                </ul>

                @*<ul style="display: none;" data-id="16" class="hide">
                        <li key="7a8ffaf4-5011-4749-8422-ea7751041ab0" name="栏目管理" url="/CMS/Catalog">
                            <a href="#">栏目管理</a>
                        </li>
                        <li key="53e9cb72-b12e-4e6c-b0b1-22cb29c26d6b" name="留言管理" url="/CMS/Leaveword">
                            <a href="#">留言管理</a>
                        </li>
                    </ul>*@

            </div>
            <div class="container-right">
                <ul class="sub-nav" id="subNav"></ul>
                <div class="iframe" id="iframe">
                </div>
            </div>
        </div>
    </div>
</div>

<script src="~/App_Content/Script/OA/index.js?20141128"></script>

<script>
    $('#container .container-left li a').eq(0).click();
</script>

<script>
    $(function () {

        $('#container .container-left li a').eq(0).click();
    })
</script>


<script>
    jQuery(function () {
        if ($.browser.msie && ($.browser.version == 6.0) && !$.support.style) {
            window.location = "/App_Content/Html/Browser.htm";
        }
        else if ($.browser.msie && ($.browser.version == 7.0) && !$.support.style) {
            window.location = "/App_Content/Html/Browser.htm";
        }
    });
</script>

<script type="text/javascript">
    var winHeight = $("body").height();
    var container = $("#container");
    var iframe = $("#iframe");
    var arrow = $(".arrow-0");
    var navScroll = $('.nav-scroll');
    navScroll.height(winHeight - 90);
    container.height(winHeight - 82);
    iframe.height(winHeight - 116);
    $(window).resize(function () {
        winHeight = $("body").height();
        container.height(winHeight - 82);
        iframe.height(winHeight - 116);
        navScroll.height(winHeight - 90);
    });

    var twoMenu = $(".container-left");
    var oneMenu = $(".left-nav");
    var threeMenu = $("#subNav");

    twoMenu.delegate('li', 'click', function (e) {
        var key = $(this).attr('key');
        var url = $(this).attr('url');
        var name = $(this).attr('name');

        activeTab(key, name, url);
    });

    oneMenu.delegate('li', 'click', function () {
        var index = $(this).attr("data-id");
        if (index) {
            twoMenu.find('ul').hide().eq(index).show();
            arrow.css('top', (45 + 86 * index) + 'px');
        }
    });

    threeMenu.delegate('li', 'click', function () {
        var key = $(this).attr('key');
        var url = $(this).attr('url');
        var name = $(this).attr('name');

        activeTab(key, name, url);
    }).delegate('li .delete', 'click', function () {
        removeFrame($(this).parent().attr('key'));
        $(this).parent().remove();
        var last = threeMenu.find("li:last-child");
        if (last.length > 0) {
            activeTab(last.attr('key'), last.attr('name'), last.attr('url'));
        } else {
            twoMenu.find('a').removeClass('active');
        }
        return false;
    });

    $('body').on('click', function (e) {
        var ac = e.target.getAttribute('data-action');
        if (ac === "changePassword") {
            activeTab("Common_User_ChangePassword", "修改密码", e.target.getAttribute('data-url'));
        }
    });
</script>
